﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>

<form id="form1">
    <div class='myzh_right_content fr'>
        <p class='right_head_title'><span class="span1">我的 ></span> 操作</p>
        <div class="recharge-content">
				<input type="hidden" id="id" name="id" value="${data.id}"/>
			    <div class="mt-10">
                <span class="fl mt-3 w-120">用户编号：</span>
                <input type="text" class="txt txt-1 fl w-220" id="user_id" name="user_id" value="${data.user_id}">
                <div class="cl"></div>
				</div>
			    <div class="mt-10">
                <span class="fl mt-3 w-120">事项，字符串，如：注册用户、浏览ico等：</span>
                <input type="text" class="txt txt-1 fl w-220" id="item_info" name="item_info" value="${data.item_info}">
                <div class="cl"></div>
				</div>
			    <div class="mt-10">
                <span class="fl mt-3 w-120">积分数：</span>
                <input type="text" class="txt txt-1 fl w-220" id="score" name="score" value="${data.score}">
                <div class="cl"></div>
				</div>
			    <div class="mt-10">
                <span class="fl mt-3 w-120">创建时间：</span>
                <input type="text" class="txt txt-1 fl w-220" id="create_time" name="create_time" value="${data.create_time}">
                <div class="cl"></div>
				</div>
			    <div class="mt-10">
                <span class="fl mt-3 w-120">business_id：</span>
                <input type="text" class="txt txt-1 fl w-220" id="business_id" name="business_id" value="${data.business_id}">
                <div class="cl"></div>
				</div>
           
            <div class="mt-30 ml-10">
                <input type="button" class="btn btn-1 fl w-100" value="${title}" onclick="add()">
                <input type="button" class="btn btn-2 fl w-100 ml-20" value="返回" onclick="window.location='${basePath}/t_integral_record/list'">
            </div>
        </div>
    </div>
</form>
<div class='clear'></div>
<script  type="text/javascript">
    function add() {
        $.post("${basePath}/ajax/t_integral_record/add", $("#form1").serialize(), function(d){
            if (d.code==1) {
                alert("成功");
                window.location = "${basePath}/t_integral_record/list";
                return;
            }
            alert("失败");
        });
    }
</script>


